using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class BatchGetShakeTranImgResponse : GeneratedMessageLite<BatchGetShakeTranImgResponse, BatchGetShakeTranImgResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<BatchGetShakeTranImgResponse, BatchGetShakeTranImgResponse.Builder>
		{
			private bool resultIsReadOnly;
			private BatchGetShakeTranImgResponse result;
			protected override BatchGetShakeTranImgResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override BatchGetShakeTranImgResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override BatchGetShakeTranImgResponse DefaultInstanceForType
			{
				get
				{
					return BatchGetShakeTranImgResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint Count
			{
				get
				{
					return this.result.Count;
				}
				set
				{
					this.SetCount(value);
				}
			}
			public IPopsicleList<ShakeTranImgGetItem> ImgUrlListList
			{
				get
				{
					return this.PrepareBuilder().imgUrlList_;
				}
			}
			public int ImgUrlListCount
			{
				get
				{
					return this.result.ImgUrlListCount;
				}
			}
			public Builder()
			{
				this.result = BatchGetShakeTranImgResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(BatchGetShakeTranImgResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private BatchGetShakeTranImgResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					BatchGetShakeTranImgResponse other = this.result;
					this.result = new BatchGetShakeTranImgResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override BatchGetShakeTranImgResponse.Builder Clear()
			{
				this.result = BatchGetShakeTranImgResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override BatchGetShakeTranImgResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new BatchGetShakeTranImgResponse.Builder(this.result);
				}
				return new BatchGetShakeTranImgResponse.Builder().MergeFrom(this.result);
			}
			public override BatchGetShakeTranImgResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override BatchGetShakeTranImgResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is BatchGetShakeTranImgResponse)
				{
					return this.MergeFrom((BatchGetShakeTranImgResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override BatchGetShakeTranImgResponse.Builder MergeFrom(BatchGetShakeTranImgResponse other)
			{
				return this;
			}
			public override BatchGetShakeTranImgResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override BatchGetShakeTranImgResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(BatchGetShakeTranImgResponse._batchGetShakeTranImgResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = BatchGetShakeTranImgResponse._batchGetShakeTranImgResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasCount = input.ReadUInt32(ref this.result.count_);
							continue;
						}
						if (num3 == 26u)
						{
							input.ReadMessageArray<ShakeTranImgGetItem>(num, text, this.result.imgUrlList_, ShakeTranImgGetItem.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder SetCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCount = true;
				this.result.count_ = value;
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder ClearCount()
			{
				this.PrepareBuilder();
				this.result.hasCount = false;
				this.result.count_ = 0u;
				return this;
			}
			public ShakeTranImgGetItem GetImgUrlList(int index)
			{
				return this.result.GetImgUrlList(index);
			}
			public BatchGetShakeTranImgResponse.Builder SetImgUrlList(int index, ShakeTranImgGetItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.imgUrlList_[index] = value;
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder SetImgUrlList(int index, ShakeTranImgGetItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.imgUrlList_[index] = builderForValue.Build();
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder AddImgUrlList(ShakeTranImgGetItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.imgUrlList_.Add(value);
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder AddImgUrlList(ShakeTranImgGetItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.imgUrlList_.Add(builderForValue.Build());
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder AddRangeImgUrlList(IEnumerable<ShakeTranImgGetItem> values)
			{
				this.PrepareBuilder();
				this.result.imgUrlList_.Add(values);
				return this;
			}
			public BatchGetShakeTranImgResponse.Builder ClearImgUrlList()
			{
				this.PrepareBuilder();
				this.result.imgUrlList_.Clear();
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int CountFieldNumber = 2;
		public const int ImgUrlListFieldNumber = 3;
		private static readonly BatchGetShakeTranImgResponse defaultInstance;
		private static readonly string[] _batchGetShakeTranImgResponseFieldNames;
		private static readonly uint[] _batchGetShakeTranImgResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasCount;
		private uint count_;
		private PopsicleList<ShakeTranImgGetItem> imgUrlList_ = new PopsicleList<ShakeTranImgGetItem>();
		private int memoizedSerializedSize = -1;
		public static BatchGetShakeTranImgResponse DefaultInstance
		{
			get
			{
				return BatchGetShakeTranImgResponse.defaultInstance;
			}
		}
		public override BatchGetShakeTranImgResponse DefaultInstanceForType
		{
			get
			{
				return BatchGetShakeTranImgResponse.DefaultInstance;
			}
		}
		protected override BatchGetShakeTranImgResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint Count
		{
			get
			{
				return this.count_;
			}
		}
		public IList<ShakeTranImgGetItem> ImgUrlListList
		{
			get
			{
				return this.imgUrlList_;
			}
		}
		public int ImgUrlListCount
		{
			get
			{
				return this.imgUrlList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasCount && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Count);
				}
				using (IEnumerator<ShakeTranImgGetItem> enumerator = this.ImgUrlListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						ShakeTranImgGetItem current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(3, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private BatchGetShakeTranImgResponse()
		{
		}
		public ShakeTranImgGetItem GetImgUrlList(int index)
		{
			return this.imgUrlList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] batchGetShakeTranImgResponseFieldNames = BatchGetShakeTranImgResponse._batchGetShakeTranImgResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, batchGetShakeTranImgResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasCount)
			{
				output.WriteUInt32(2, batchGetShakeTranImgResponseFieldNames[1], this.Count);
			}
			if (this.imgUrlList_.Count > 0)
			{
				output.WriteMessageArray<ShakeTranImgGetItem>(3, batchGetShakeTranImgResponseFieldNames[2], this.imgUrlList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasCount)
			{
				num ^= this.count_.GetHashCode();
			}
			using (IEnumerator<ShakeTranImgGetItem> enumerator = this.imgUrlList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					ShakeTranImgGetItem current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			BatchGetShakeTranImgResponse batchGetShakeTranImgResponse = object_0 as BatchGetShakeTranImgResponse;
			if (batchGetShakeTranImgResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != batchGetShakeTranImgResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(batchGetShakeTranImgResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasCount != batchGetShakeTranImgResponse.hasCount || (this.hasCount && !this.count_.Equals(batchGetShakeTranImgResponse.count_)))
			{
				return false;
			}
			if (this.imgUrlList_.Count != batchGetShakeTranImgResponse.imgUrlList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.imgUrlList_.Count; i++)
			{
				if (!this.imgUrlList_[i].Equals(batchGetShakeTranImgResponse.imgUrlList_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<BatchGetShakeTranImgResponse, BatchGetShakeTranImgResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<BatchGetShakeTranImgResponse, BatchGetShakeTranImgResponse.Builder>.PrintField("Count", this.hasCount, this.count_, writer);
			GeneratedMessageLite<BatchGetShakeTranImgResponse, BatchGetShakeTranImgResponse.Builder>.PrintField<ShakeTranImgGetItem>("ImgUrlList", this.imgUrlList_, writer);
		}
		public static BatchGetShakeTranImgResponse ParseFrom(byte[] data)
		{
			return BatchGetShakeTranImgResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private BatchGetShakeTranImgResponse MakeReadOnly()
		{
			this.imgUrlList_.MakeReadOnly();
			return this;
		}
		public static BatchGetShakeTranImgResponse.Builder CreateBuilder()
		{
			return new BatchGetShakeTranImgResponse.Builder();
		}
		public override BatchGetShakeTranImgResponse.Builder ToBuilder()
		{
			return BatchGetShakeTranImgResponse.CreateBuilder(this);
		}
		public override BatchGetShakeTranImgResponse.Builder CreateBuilderForType()
		{
			return new BatchGetShakeTranImgResponse.Builder();
		}
		public static BatchGetShakeTranImgResponse.Builder CreateBuilder(BatchGetShakeTranImgResponse prototype)
		{
			return new BatchGetShakeTranImgResponse.Builder(prototype);
		}
		static BatchGetShakeTranImgResponse()
		{
			BatchGetShakeTranImgResponse.defaultInstance = new BatchGetShakeTranImgResponse().MakeReadOnly();
			BatchGetShakeTranImgResponse._batchGetShakeTranImgResponseFieldNames = new string[]
			{
				"BaseResponse",
				"Count",
				"ImgUrlList"
			};
			BatchGetShakeTranImgResponse._batchGetShakeTranImgResponseFieldTags = new uint[]
			{
				10u,
				16u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.BatchGetShakeTranImgResponse.Descriptor, null);
		}
	}
}
